<?php

/**
 * Invoicedetails form.
 *
 * @package    billingSystem
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class InvoicedetailsForm extends BaseInvoicedetailsForm
{
        public function configure()
        {
                unset ($this['created_at'],$this['updated_at']);
//                $this->widgetSchema['proid']=new sfWidgetFormChoice(array('choices'=>Doctrine_Core::getTable('Products')->findAll(),'expanded'=>false));
  //              $this->widgetSchema['proid']=new sfWidgetFormDoctrineChoice(array('model'=> 'products','method'=>'',
//                                                                'query'=> Doctrine_Query::create()->from('products')->Where(''),add_empty' => false));
                $this->validatorSchema['proid']= new sfValidatorDoctrineChoice(array('model' => $this->getRelatedModelName('Products')));
                $this->validatorSchema['invid']=new sfValidatorNumber();
        }
}
